import {request} from "./request";

export const video = {
  //获取视频所有分类
  getVideoCate(){
    return request({
      url:'/video/group/list',
    })
  },
  //获取视频右边标签列表
  getVideoTags(){
    return request({
      url:'/video/category/list',
    })
  },
  //获取全部视频
  getAllVideo(offset){
    return request({
      url:'/video/timeline/all',
      params:{offset},
    })
  },
  //获取对应标签视频
  getTagVideo(id, offset){
    return request({
      url:'/video/timeline/all',
      params:{
        id,
        offset,
      }
    })
  },
  //获取所有MV
  getAllMv(area, type, order, offset){
    return request({
      url:'/mv/all',
      params:{
        area,
        type,
        order,
        offset,
        limit:12,
      }
    })
  },

}
